Optimal. Leaf size=157 \[ \frac {\left (5 a^4-6 a^2 b^2+b^4\right ) \log (a+b \sin (c+d x))}{b^6 d}-\frac {4 a \left (a^2-b^2\right ) \sin (c+d x)}{b^5 d}+\frac {\left (3 a^2-2 b^2\right ) \sin ^2(c+d x)}{2 b^4 d}-\frac {2 a \sin ^3(c+d x)}{3 b^3 d}+\frac {\sin ^4(c+d x)}{4 b^2 d}+\frac {a \left (a^2-b^2\right )^2}{b^6 d (a+b \sin (c+d x))} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 157, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {2916, 12, 786}
\begin {gather*} \frac {a \left (a^2-b^2\right )^2}{b^6 d (a+b \sin (c+d x))}-\frac {4 a \left (a^2-b^2\right ) \sin (c+d x)}{b^5 d}+\frac {\left (3 a^2-2 b^2\right ) \sin ^2(c+d x)}{2 b^4 d}+\frac {\left (5 a^4-6 a^2 b^2+b^4\right ) \log (a+b \sin (c+d x))}{b^6 d}-\frac {2 a \sin ^3(c+d x)}{3 b^3 d}+\frac {\sin ^4(c+d x)}{4 b^2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 786
Rule 2916
Rubi steps
\begin {align*} \int \frac {\cos ^5(c+d x) \sin (c+d x)}{(a+b \sin (c+d x))^2} \, dx &=\frac {\text {Subst}\left (\int \frac {x \left (b^2-x^2\right )^2}{b (a+x)^2} \, dx,x,b \sin (c+d x)\right )}{b^5 d}\\ &=\frac {\text {Subst}\left (\int \frac {x \left (b^2-x^2\right )^2}{(a+x)^2} \, dx,x,b \sin (c+d x)\right )}{b^6 d}\\ &=\frac {\text {Subst}\left (\int \left (-4 \left (a^3-a b^2\right )+\left (3 a^2-2 b^2\right ) x-2 a x^2+x^3-\frac {a \left (a^2-b^2\right )^2}{(a+x)^2}+\frac {5 a^4-6 a^2 b^2+b^4}{a+x}\right ) \, dx,x,b \sin (c+d x)\right )}{b^6 d}\\ &=\frac {\left (5 a^4-6 a^2 b^2+b^4\right ) \log (a+b \sin (c+d x))}{b^6 d}-\frac {4 a \left (a^2-b^2\right ) \sin (c+d x)}{b^5 d}+\frac {\left (3 a^2-2 b^2\right ) \sin ^2(c+d x)}{2 b^4 d}-\frac {2 a \sin ^3(c+d x)}{3 b^3 d}+\frac {\sin ^4(c+d x)}{4 b^2 d}+\frac {a \left (a^2-b^2\right )^2}{b^6 d (a+b \sin (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.72, size = 188, normalized size = 1.20 \begin {gather*} \frac {12 a \left (a^2-b^2\right ) \left (a^2-b^2+\left (5 a^2-b^2\right ) \log (a+b \sin (c+d x))\right )+12 b \left (-a^2+b^2\right ) \left (4 a^2+\left (-5 a^2+b^2\right ) \log (a+b \sin (c+d x))\right ) \sin (c+d x)-6 a b^2 \left (5 a^2-6 b^2\right ) \sin ^2(c+d x)+2 b^3 \left (5 a^2-6 b^2\right ) \sin ^3(c+d x)-5 a b^4 \sin ^4(c+d x)+3 b^5 \sin ^5(c+d x)}{12 b^6 d (a+b \sin (c+d x))} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.48, size = 152, normalized size = 0.97
method | result | size |
derivativedivides | \(\frac {-\frac {-\frac {b^{3} \left (\sin ^{4}\left (d x +c \right )\right )}{4}+\frac {2 a \left (\sin ^{3}\left (d x +c \right )\right ) b^{2}}{3}-\frac {3 a^{2} b \left (\sin ^{2}\left (d x +c \right )\right )}{2}+b^{3} \left (\sin ^{2}\left (d x +c \right )\right )+4 a^{3} \sin \left (d x +c \right )-4 a \,b^{2} \sin \left (d x +c \right )}{b^{5}}+\frac {\left (5 a^{4}-6 a^{2} b^{2}+b^{4}\right ) \ln \left (a +b \sin \left (d x +c \right )\right )}{b^{6}}+\frac {a \left (a^{4}-2 a^{2} b^{2}+b^{4}\right )}{b^{6} \left (a +b \sin \left (d x +c \right )\right )}}{d}\) | \(152\) |
default | \(\frac {-\frac {-\frac {b^{3} \left (\sin ^{4}\left (d x +c \right )\right )}{4}+\frac {2 a \left (\sin ^{3}\left (d x +c \right )\right ) b^{2}}{3}-\frac {3 a^{2} b \left (\sin ^{2}\left (d x +c \right )\right )}{2}+b^{3} \left (\sin ^{2}\left (d x +c \right )\right )+4 a^{3} \sin \left (d x +c \right )-4 a \,b^{2} \sin \left (d x +c \right )}{b^{5}}+\frac {\left (5 a^{4}-6 a^{2} b^{2}+b^{4}\right ) \ln \left (a +b \sin \left (d x +c \right )\right )}{b^{6}}+\frac {a \left (a^{4}-2 a^{2} b^{2}+b^{4}\right )}{b^{6} \left (a +b \sin \left (d x +c \right )\right )}}{d}\) | \(152\) |
risch | \(\frac {12 i a^{2} c}{b^{4} d}-\frac {5 i a^{4} x}{b^{6}}+\frac {7 i a \,{\mathrm e}^{-i \left (d x +c \right )}}{4 b^{3} d}-\frac {3 \,{\mathrm e}^{2 i \left (d x +c \right )} a^{2}}{8 b^{4} d}+\frac {3 \,{\mathrm e}^{2 i \left (d x +c \right )}}{16 b^{2} d}-\frac {2 i c}{b^{2} d}+\frac {6 i a^{2} x}{b^{4}}-\frac {7 i a \,{\mathrm e}^{i \left (d x +c \right )}}{4 b^{3} d}-\frac {10 i a^{4} c}{b^{6} d}-\frac {3 \,{\mathrm e}^{-2 i \left (d x +c \right )} a^{2}}{8 b^{4} d}+\frac {3 \,{\mathrm e}^{-2 i \left (d x +c \right )}}{16 b^{2} d}-\frac {2 i a^{3} {\mathrm e}^{-i \left (d x +c \right )}}{b^{5} d}-\frac {i x}{b^{2}}+\frac {2 i a^{3} {\mathrm e}^{i \left (d x +c \right )}}{b^{5} d}+\frac {2 a \left (a^{4}-2 a^{2} b^{2}+b^{4}\right ) {\mathrm e}^{i \left (d x +c \right )}}{d \,b^{6} \left (-i b \,{\mathrm e}^{2 i \left (d x +c \right )}+i b +2 a \,{\mathrm e}^{i \left (d x +c \right )}\right )}+\frac {5 a^{4} \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-1+\frac {2 i a \,{\mathrm e}^{i \left (d x +c \right )}}{b}\right )}{b^{6} d}-\frac {6 a^{2} \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-1+\frac {2 i a \,{\mathrm e}^{i \left (d x +c \right )}}{b}\right )}{b^{4} d}+\frac {\ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-1+\frac {2 i a \,{\mathrm e}^{i \left (d x +c \right )}}{b}\right )}{b^{2} d}+\frac {\cos \left (4 d x +4 c \right )}{32 d \,b^{2}}+\frac {a \sin \left (3 d x +3 c \right )}{6 b^{3} d}\) | \(432\) |
norman | \(\frac {-\frac {\left (150 a^{3}-160 a \,b^{2}\right ) \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 b^{4} d}-\frac {\left (150 a^{3}-160 a \,b^{2}\right ) \left (\tan ^{10}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 b^{4} d}-\frac {\left (10 a^{3}-12 a \,b^{2}\right ) \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{b^{4} d}-\frac {\left (10 a^{3}-12 a \,b^{2}\right ) \left (\tan ^{12}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{b^{4} d}-\frac {5 \left (20 a^{3}-20 a \,b^{2}\right ) \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{b^{4} d}-\frac {5 \left (20 a^{3}-20 a \,b^{2}\right ) \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{b^{4} d}-\frac {4 \left (45 a^{5}-59 a^{3} b^{2}+15 a \,b^{4}\right ) \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 a \,b^{5} d}-\frac {4 \left (45 a^{5}-59 a^{3} b^{2}+15 a \,b^{4}\right ) \left (\tan ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 a \,b^{5} d}-\frac {2 \left (225 a^{5}-310 a^{3} b^{2}+81 a \,b^{4}\right ) \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 b^{5} d a}-\frac {2 \left (225 a^{5}-310 a^{3} b^{2}+81 a \,b^{4}\right ) \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 b^{5} d a}-\frac {8 \left (25 a^{5}-35 a^{3} b^{2}+9 a \,b^{4}\right ) \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{b^{5} d a}-\frac {2 \left (5 a^{5}-6 a^{3} b^{2}+a \,b^{4}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{a \,b^{5} d}-\frac {2 \left (5 a^{5}-6 a^{3} b^{2}+a \,b^{4}\right ) \left (\tan ^{13}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a \,b^{5} d}}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{6} \left (a \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+2 b \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+a \right )}+\frac {\left (5 a^{4}-6 a^{2} b^{2}+b^{4}\right ) \ln \left (a \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+2 b \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+a \right )}{d \,b^{6}}-\frac {\left (5 a^{4}-6 a^{2} b^{2}+b^{4}\right ) \ln \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d \,b^{6}}\) | \(615\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 148, normalized size = 0.94 \begin {gather*} \frac {\frac {12 \, {\left (a^{5} - 2 \, a^{3} b^{2} + a b^{4}\right )}}{b^{7} \sin \left (d x + c\right ) + a b^{6}} + \frac {3 \, b^{3} \sin \left (d x + c\right )^{4} - 8 \, a b^{2} \sin \left (d x + c\right )^{3} + 6 \, {\left (3 \, a^{2} b - 2 \, b^{3}\right )} \sin \left (d x + c\right )^{2} - 48 \, {\left (a^{3} - a b^{2}\right )} \sin \left (d x + c\right )}{b^{5}} + \frac {12 \, {\left (5 \, a^{4} - 6 \, a^{2} b^{2} + b^{4}\right )} \log \left (b \sin \left (d x + c\right ) + a\right )}{b^{6}}}{12 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 203, normalized size = 1.29 \begin {gather*} -\frac {40 \, a b^{4} \cos \left (d x + c\right )^{4} - 96 \, a^{5} + 504 \, a^{3} b^{2} - 383 \, a b^{4} - 16 \, {\left (15 \, a^{3} b^{2} - 13 \, a b^{4}\right )} \cos \left (d x + c\right )^{2} - 96 \, {\left (5 \, a^{5} - 6 \, a^{3} b^{2} + a b^{4} + {\left (5 \, a^{4} b - 6 \, a^{2} b^{3} + b^{5}\right )} \sin \left (d x + c\right )\right )} \log \left (b \sin \left (d x + c\right ) + a\right ) - {\left (24 \, b^{5} \cos \left (d x + c\right )^{4} - 384 \, a^{4} b + 392 \, a^{2} b^{3} - 33 \, b^{5} - 16 \, {\left (5 \, a^{2} b^{3} - 3 \, b^{5}\right )} \cos \left (d x + c\right )^{2}\right )} \sin \left (d x + c\right )}{96 \, {\left (b^{7} d \sin \left (d x + c\right ) + a b^{6} d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.50, size = 194, normalized size = 1.24 \begin {gather*} \frac {\frac {12 \, {\left (5 \, a^{4} - 6 \, a^{2} b^{2} + b^{4}\right )} \log \left ({\left | b \sin \left (d x + c\right ) + a \right |}\right )}{b^{6}} - \frac {12 \, {\left (5 \, a^{4} b \sin \left (d x + c\right ) - 6 \, a^{2} b^{3} \sin \left (d x + c\right ) + b^{5} \sin \left (d x + c\right ) + 4 \, a^{5} - 4 \, a^{3} b^{2}\right )}}{{\left (b \sin \left (d x + c\right ) + a\right )} b^{6}} + \frac {3 \, b^{6} \sin \left (d x + c\right )^{4} - 8 \, a b^{5} \sin \left (d x + c\right )^{3} + 18 \, a^{2} b^{4} \sin \left (d x + c\right )^{2} - 12 \, b^{6} \sin \left (d x + c\right )^{2} - 48 \, a^{3} b^{3} \sin \left (d x + c\right ) + 48 \, a b^{5} \sin \left (d x + c\right )}{b^{8}}}{12 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.09, size = 161, normalized size = 1.03 \begin {gather*} \frac {\frac {{\sin \left (c+d\,x\right )}^4}{4\,b^2}-{\sin \left (c+d\,x\right )}^2\,\left (\frac {1}{b^2}-\frac {3\,a^2}{2\,b^4}\right )+\sin \left (c+d\,x\right )\,\left (\frac {2\,a^3}{b^5}+\frac {2\,a\,\left (\frac {2}{b^2}-\frac {3\,a^2}{b^4}\right )}{b}\right )-\frac {2\,a\,{\sin \left (c+d\,x\right )}^3}{3\,b^3}+\frac {a^5-2\,a^3\,b^2+a\,b^4}{b\,\left (\sin \left (c+d\,x\right )\,b^6+a\,b^5\right )}+\frac {\ln \left (a+b\,\sin \left (c+d\,x\right )\right )\,\left (5\,a^4-6\,a^2\,b^2+b^4\right )}{b^6}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________